import axios from 'axios'
 const request = axios.create({
    baseURL:'http://192.168.12.94:8081'
 })
request.interceptors.response.use((data) => {
    const { ok, msg } = data;
    if (ok === -1) {
        alert(msg);//处理异常
        return new Promise(() => { });
    }
    return data;
})
export default request;